﻿#region Using namespaces

using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Windows.Input;

using AvalonDock;

#endregion

namespace BOL.Apps.GeneNetworkBrowser.ViewModels
{
    public class PaneViewModel : ViewModelBase
    {
        #region Protected variables

        private bool _isVisible;
        protected MainWindowViewModel _vmMainWindow;

        #endregion

        #region Public properties

        public bool IsVisible
        {
            get { return _isVisible; }
            set
            {
                if (value != _isVisible)
                {
                    _isVisible = value;
                    OnPropertyChanged("IsVisible");
                }
            }
        }

        #endregion

        #region Constructor

        public PaneViewModel(MainWindowViewModel vmMainWindow)
        {
            if (vmMainWindow == null)
                throw new ArgumentNullException("MainWindowViewModel cannot be null.");

            _isVisible = true;
            _vmMainWindow = vmMainWindow;
        }

        #endregion
    }
}
